<#if user?? && user.linkType?? && user.linkType == "psgly"> <!-- 评审管理员-->
<#include "sshdXqListTemplate.html">
<#else>
	您没有权限查看该功能
</#if>
<#macro xmtopic>
${matchProject.matName!} 
</#macro>
<#macro toolbarButton> 
<style>
.xm_button .el-button1{
	background-color: #00a3de;
}
.xm_button .el-button2{
	background-color: #0089de;
}
.xm_button .el-button3{
	background-color: #1c6dc9;
}
.xm_button img {margin-right: 6px;}
.searchBox {
    background-color: #fff;
    background-image: none;
    border: 1px solid #d9d9d9;
    color: #1f2d3d;
    height: 35px;
    float: left;
    padding-left: 10px;
    width: 178px;
    font-size: 15px;
    border-radius: 5px;
    margin-left: 20px;
    margin-top: 15px;
}
</style>
<select  class="searchBox" disabled onchange="queryByArtType(this.options[this.options.selectedIndex].value)">
	<#list matchTypeList as type>
  		<option value ="${type.value!}" <#if artType?? && artType== type.value>selected<#elseif !(artType??) && type.value == "swmscx"> select</#if>>${type.name!}</option>
	</#list>  
</select>
<button  type="button" class="el-button3" onclick="submitPs('${matchProject.id!}')"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/submit.png"/>提交评审工作</span></button>
<button  type="button" class="el-button2"  onclick="reflushWindow(true);"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/shuaxin.png"/>刷新</span></button>
<!-- <button  type="button" class="el-button1"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/upload.png"/>上传评分表</span></button> -->
<!-- <button  type="button" class="el-button1"><span style="font-size: 16px;"><img src="static/cms/www/default/img/sshd/download.png"/>下载评分表</span></button> -->
</#macro>
<#macro tableDataList>
  <tbody>
    
 <#if dataList??>
  <#list dataList as data>
    <tr>  
	    <td>${data.artName!}</td>
	    <td><@jmax.dc key="MATCH_ART_TYPE" code="${data.artType!}" /></td>
	    <td>${(data.scoreItem.cxx)!0}</td> 
	     <#if data.artType?? && data.artType == "swmscx">
	    	<td>${(data.scoreItem.tdqk)!0}</td>  
	    	<td>${(data.scoreItem.syx)!0}</td>
	    <#elseif data.artType?? && data.artType == "jsyycx">
	    	<td>${(data.scoreItem.jsyy)!0}</td>  
		</#if>
	    <td>${(data.scoreItem.sumScore)!0}</td>  
	    <td>
	        <a onclick="editsshdzxqXM('${data.artType!}',${data.id!},'sshdCsXmShow')">[查看]</a>
	        <#if !((data.scoreItem.psStatus)?? && (data.scoreItem.psStatus=="ytj"))>
	         <#if data.artType?? && data.artType == "swmscx">
				<a onclick="csxmpfEdit('content_zjpf',${data.id!},'${(data.scoreItem.id)!}','${(data.scoreItem.cxx)!0}','${(data.scoreItem.tdqk)!0}','${(data.scoreItem.syx)!0}','${data.artType!}')">[评分]</a>
			 <#elseif data.artType?? && data.artType == "jsyycx">
			    <a onclick="csxmpfEdit('content_zjpf',${data.id!},'${(data.scoreItem.id)!}','${(data.scoreItem.cxx)!0}','${(data.scoreItem.jsyy)!0}','0','${data.artType!}')">[评分]</a>
			 </#if>
			</#if>
		</td>  
	</tr>  
  </#list>
 </#if>
  </tbody>
</#macro>
<#macro contentListShow>
	<#include "sshdXqTable.html">
		<#if artType?? && artType== "swmscx">
			<@createTable styleClass='container1100' tabfields = ['项目名称','项目类型','创新性','团队情况','商业性','总分','操作'] isCheckBox=false checkBoxName='zjxmpfId' func=tableDataList  funcButton=buttonOprator1/>
		<#elseif artType?? && artType == "jsyycx"> 
			<@createTable styleClass='container1100' tabfields = ['项目名称','项目类型','创新性','技术应用','总分','操作'] isCheckBox=false checkBoxName='zjxmpfId' func=tableDataList  funcButton=buttonOprator1/>
		<#else>
			当前评审员需要评审的项目类型未知
		</#if>
	<#include "pager.html">
</#macro>
<#macro buttonOprator1>
</#macro>
<#macro buttonOprator>
	<#include "sshdPsXmReviewEdit.html"> 
	<@saveXmZJPFEdit/>
</#macro>
<#macro extendJs>
<#include "sshdXqXmJs.html"> 
	<@sshdXqXmJs/>
</macro>
<script>
function queryByArtType(artType) {
	//matchManager.do?sshdBackstage&sshdId=1&subNav=sshdXqZJPF
	var sshdId = getUrlParam("sshdId");
	var param = "&sshdId="+sshdId + "&artType=" + artType;
	window.location.href = "matchManager.do?sshdPsXmReview" + param;
}
function submitPs(sshdId) {
	
	$.confirm({
    title: '提示',
    content: '提交评审工作后，不可再修改评分结果，是否确认提交?',
    confirm: function(){
		$.ajax({
		     type: 'POST',
		     url: "matchManager.do?submitPs",
		     dataType : 'json',  
		     data: {sshdId:sshdId},
		     success: function(data) {
		     	alertMessage(data,true,null);
	         },
     	    error:function(data,textstatus){
     	    	errorMessage();
           }  
		  });
    },
    cancel: function(){
    }
});
}
</script>
</#macro>